Visual language for human computer interfaces

ABSTRACT

Embodiments of the invention recognize human visual gestures, as captured by image and video sensors, to develop a visual language for a variety of human computer interfaces. One embodiment provides a method for recognizing a hand gesture positioned by a user hand. The method includes steps of capturing a digital color image of a user hand against a background, applying a general parametric model to the digital color image of the user hand to generate a specific parametric template of the user hand, receiving a second digital image of the user hand positioned to represent a hand gesture, detecting a hand contour of the hand gesture based at least in part on the specific parametric template of the user hand, and recognizing the hand gesture based at least in part on the detected hand contour. Other embodiments include recognizing hand gestures, facial gestures or body gestures captured in a video.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to U.S. Provisional Patent Application No. 61/775,122, filed on Mar. 8, 2013, entitled “Methods, Apparatus, and Computer Program for a Visual Language for Human Computer Interfaces,” which is incorporated by reference herein in its entirety.

BACKGROUND

This invention relates generally to visual languages for human computer interfaces, and more specifically to recognizing human visual gestures, as captured by image and video sensors, to develop a visual language for human computer interfaces.

Human Computer Interface (HCI) has been a field of research for more than 30 years with a wide range of applications from innovative ways for scrolling through websites or documents to advanced media manipulation. The recent development of mobile platforms, such as smartphones and tablets, has brought significant innovations in a rapidly developing commercial field, inviting innovative human computer interfaces to enhance user convenience. For example, recently developed mobile communications platforms, such as smartphones and tablets, incorporate multiple image/video cameras, and touch screens with multi-touch sensitivity, and generally avoid traditional keyboards, mince and pencil-like entry devices. Recent gaming devices have added further innovation of incorporating human visual gestures into the gaming system, e.g., multiple sensors including depth sensors, for a computer to understand human body gestures.

One emerging approach to human computer interface is hand gesture recognition, which is the problem of recognizing pre-defined shapes and figures, and any associated motions, formed with a human hand. It is a subfield of gesture recognition, which is the problem of recognizing pre-defined gestures with the human body. A related, but a more challenging example, is recognizing gestures of the human face, or of the human body. Gesture recognition is currently a rapidly developing area of pattern recognition, due to emerging applications in many areas, such as consumer electronics and mobile communications. Gesture recognition is starting to be used in a variety of commercial applications, from video games to controlling consumer electronics products.

There are multiple challenges of existing solutions to human computer interface problems and applications: limited platform size, physical facilities such as keyboards and screen size, limited computing power, and potentially limited bandwidth wireless network connectivity. These challenges stress simplicity and convenience of application design, and put a premium on efficient interfaces. For example, one existing solution recognizes human body motion without any markings, but using multiple sensors including a specialized depth sensor, which makes the human computer interface solution cumbersome and computationally complicated.

SUMMARY

Embodiments of the invention recognize human visual gestures, as captured by ordinary image and video sensors, to develop a visual language for a variety of useful human computer interfaces. The solutions provided by the embodiments of the invention focus on facilitating expression represented by human visual gestures and execution of commands suitable for modern computer applications. A variety of applications is possible, from scrolling through websites or documents, to making selections in menus, to innovative media manipulation, such as media capture, composition, editing, and visualization.

One embodiment of the invention provides a computer-implement method for recognizing a hand gesture positioned by a user hand. The method includes steps of capturing a digital color image of a user hand against a background, where the digital image is captured by a digital image capturing device, e.g., a digital camera contained in a mobile phone. The method further includes steps of applying a general parametric model to the digital color image of the user hand to generate a specific parametric template of the user hand, receiving a second digital image of the user hand, wherein the user hand in the second digital image is positioned to represent a hand gesture, detecting a hand contour of the hand gesture based at least in part on the specific parametric template of the user hand, and recognizing the hand gesture based at least in part on the detected hand contour.

Another embodiment of the invention provides a computer-implemented method for recognizing hand gestures positioned by a user hand captured in a video. The method includes steps of receiving an input video of a user hand against a background, where the input video has a plurality of video frames of the user hand captured using a digital image capturing device, and a video frame of the plurality video frames represents a digital color image of the user hand at a time instance. The method further includes steps of selecting a video frame of the plurality of the video frames of the input video as a reference frame, applying a general parametric model to the selected video frame of the user hand to generate a specific parameter template of the user hand, and subsequently receiving one or more video frames of input video of the user hand, where the user hand in a subsequently received video frame is positioned to represent a hand gesture. For each subsequently received video frame, the method detects a hand contour of the hand gesture based at least in part on the specific parametric template of the user hand and a motion vector associated with the received video frame, and recognizes the hand gesture based at least in part on the detected hand contours and motion vectors associated with the subsequently received video frames.

Another embodiment of the invention provides a computer-implemented method for recognizing facial gestures captured in a video. The method includes steps of capturing a digital color image of a user face against a background, where the digital image is captured using a digital image capturing device, and applying a general parametric model to the digital color image of the user face to generate a specific parametric template of the user face. The method further includes steps of continuously receiving additional digital images of the user face, where the user face in the additional digital images is configured to represent a facial gesture, with or without motion, detecting a series of facial features and associated motion vectors of the facial gesture utilizing the specific parametric template of the user face, and recognizing the facial gesture based at least in part on the detected facial gestures and associated motion vectors.

Another embodiment of the invention provides a computer-implemented method for recognizing body gestures captured in a video. The method includes steps of capturing a digital color image of a user body against a background, where the digital image is captured using a digital image capturing device gestures captured in a video, and applying a general parametric model to the digital color image of the user body to generate a specific parametric template of the user body. The method further includes steps of continuously receiving additional digital images of the user body, where the user body in the additional digital images is configured to represent a body gesture, with or without motion, detecting a series of body features and associated motion vectors of the body gesture utilizing the specific parametric template of the user body, and recognizing the body gesture based at least in part on the detected body gestures and associated motion vectors.

Another embodiment of the invention develops simple visual codes to express commands to capture, reference, edit, or transmit multimedia messages, which are specifically useful in real-time multimedia applications in a mobile communications environment. A visual code comprises multiple recognized human visual gestures, which are encoded based on a user command. The visual codes can be used for a variety of applications, such as in video editing, including capturing, splicing, blending and other manipulation of videos.

The features and advantages described in this summary and the following detailed description are not all-inclusive. Many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims hereof.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of a computer system for recognizing features positioned by human body in accordance with an embodiment of the invention.

FIG. 2A is a flow chart of a process for recognizing a hand gesture of a user hand captured by a digital capture device in accordance with an embodiment of the invention.

FIG. 2B is a flow chart of a process for recognizing hand gestures positioned by a user hand captured in a video in accordance with an embodiment of the invention.

FIG. 3A illustrates applying a general parametric model with a predefined hand outline to register a user hand in accordance with an embodiment of the invention.

FIG. 3B illustrates applying a general parametric model with a predefined region of interest to register a user hand in accordance with an embodiment of the invention.

FIG. 4 is an example of a detected hand contour of a registered user hand in accordance with an embodiment of the invention.

FIG. 5 illustrates a corresponding concave polygon of the hand contour illustrated in FIG. 4.

FIG. 6 illustrates a convex envelope polygon of the concave polygon of a hand contour shown in FIG. 5.

FIG. 7 illustrates an example triplet of planar vectors, “Begin,” “Defect” and “End” of a segment of a convex hull that has defect points.

FIG. 8 illustrates an example of measurement of the distances among a “Begin” vertex, a “Defect” vertex, an “End” vertex and a center of palm of a segment of a convex hull.

FIG. 9A is an example of a detected hand contour of a hand gesture.

FIG. 9B illustrates the detected features of a polygonal approximating the detected hand contour depicted in FIG. 9A.

FIG. 10 is a flow chart of a process of recognizing a hand gesture by the feature recognition module illustrated in FIG. 1.

FIG. 11A illustrates an example of recognizing finger count “0” gesture positioned by a user hand in accordance with an embodiment of the invention.

FIG. 11B illustrates an example of recognizing finger count “1” gesture positioned by a user hand with respect to finger count “0” gesture.

FIG. 12A illustrates an example of recognizing “Capture” gesture positioned by a user hand in accordance with an embodiment of the invention.

FIG. 12B illustrates an example of recognizing finger count “2” gesture positioned by a user hand with respect to finger count “Capture” gesture.

FIG. 13A illustrates an example of recognizing “Done” gesture positioned by a user hand in accordance with an embodiment of the invention.

FIG. 13B illustrates an example of recognizing finger count “1” gesture positioned by a user hand with respect to finger count “Done” gesture.

FIG. 14A illustrates an example of recognizing “Palm” gesture positioned by a user hand in accordance with an embodiment of the invention.

FIG. 14B illustrates an example of recognizing finger count “0” gesture positioned by a user hand with respect to finger count “Palm” gesture.

FIG. 15 illustrates six examples of finger count gestures positioned by a user hand in accordance with an embodiment of the invention.

FIG. 16 illustrates two examples of finger count “0” and “1” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention.

FIG. 17 illustrates two examples of finger count “2” and “3” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention.

FIG. 18 illustrates two examples of finger count “4” and “5” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention.

FIG. 19 illustrates two examples of finger count “6” and “7” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention.

FIG. 20 illustrates one example of finger count “8” gesture positioned by a user hand and its corresponding detected hand contour in accordance with an embodiment of the invention.

FIG. 21A is a screen shot of “Let's Count!” video game with hand gesture recognition in accordance with an embodiment of the invention.

FIG. 21B is anther screen shot of “Let's Count!” video game with hand gesture recognition in accordance with an embodiment of the invention.

FIG. 22A is a screen shot of “Let's Count!” video game showing a hand gesture for recognition in accordance with an embodiment of the invention.

FIG. 22B is a screen shot of “Let's Count!” video game showing finger count “5” gesture for recognition in accordance with an embodiment of the invention.

FIG. 22C is a screen shot of “Let's Count!” video game showing a response to correct recognition of finger count “5” gesture in accordance with an embodiment of the invention.

FIG. 23 is a flow chart of a process of main activity for playing “Let's Count!” video game in accordance with an embodiment of the invention.

FIG. 24 is a flow chart of a process for creating a game thread for playing “Let's Count!” video game in accordance with an embodiment of the invention.

FIG. 25 illustrates example video editing commands based on one or more recognized human visual gestures and possible indications via the commands.

The figures depict various embodiments of the invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.

DETAILED DESCRIPTION System Architecture

FIG. 1 illustrates a computer system 100 for recognizing human visual gestures. The computer system 100 includes a detection module 120 to receive human visual gestures 110 and a recognition module 130 to recognize human visual gestures based on the detection result from the detection module 120. The human visual gestures 110 include static digital images of a variety of human visual gestures, such as hand gesture positioned by a user hand, a body gesture positioned by a human body, and a facial gesture represented by a user face. Other embodiments of the human visual gestures 110 may include an input video of human visual gestures, e.g., hand gestures, body gestures and facial gestures of a human user. The input video includes one or more video frames of human visual gestures and the system 100 processes the video frames of the input video to recognize human visual gestures contained in the video frames.

In one embodiment, the detection module 120 includes a registration module 122 and contour detection module 124. The registration module 122 is configured to receive the human visual gestures 110, e.g., a hand gesture represented by a user hand, and to register the human body part (e.g., user hand) that represents the human visual gesture. Taking a hand gesture as an example, the registration module 122 registers the user hand by applying a general parametric model to the user hand and generates a specific parametric template of the user hand using selected pixels of a digital image that represents the user hand. The contour detection module 124 is configured to detect contour of the human body part that represents the human visual gesture for further processing by the recognition module 130.

In one embodiment, the recognition module 130 includes a contour approximation module 132, a feature analysis module 134 and a gesture recognition module 136. The contour approximation module 132 is configured to approximate the detected human body contour by one or more polygonal segments and to find a convex hull of the approximated polygonal human body contour. The feature analysis module 132 is configured to extract one or more features of the detected human body contour based on the analysis of convexity of the approximated polygonal human body contour. The recognition module 136 is configured to recognize the human visual gestures based on comparison of a refined polygonal approximation of the detected human body contour with a set of known human body gestures, such as the American Sign Language set of hand gestures.

To simplify illustration of various embodiments of the invention, the description from herein uses hand gesture recognition as an example for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein. Further, one skilled in the art will readily recognize from the following discussion other types of human visual gesture recognition can be implemented without departing from the principles of the invention described herein. For example, the detection module 120 and gesture recognition module 130 of FIG. 1 is readily applicable to recognize human body gestures and facial gestures similarly as to the hand gesture recognition described below.

Hand Gesture Recognition—Overview

Hand gesture recognition is the problem of recognizing pre-defined shapes and figures, and any associated motions, formed with a human hand. Hand gestures recognition can potentially apply to a vast array of applications, as hands are a natural and potentially powerful input device. Hand gestures in simple forms are shapes that can be described in terms of stick-and-joint-figure representations. One can conceive of proximity of a presented hand to such stick figures as a possible methodology for hand gesture recognition. However, this only serves as crude motivation without considering contours and key points of a hand gesture.

The limitations of existing hand gesture recognition solutions are mitigated by the embodiments of the invention, which build a real-time (and run-time) model of user hand skin tone to recognize hand gesture positioned by a user hand captured in a digital image. In addition, in the presence of video sensors, motion-based features of hand gestures captured in a series of video frames of a video of the user hand also become available for both the creation and recognition of hand gestures captured in the video.

Hand gesture recognition can be conceptually divided into two tasks, hand detection and gesture recognition. Using the computer system 100 depicted in FIG. 1 as an example, the detection module 120 detects a user hand captured in a digital image or in a sequence of video frames of a video of the user hand. The gesture recognition module 130 recognizes hand gestures positioned by the user hand. Hand detection aims to detect a human hand in a captured digital image and segment it from other background image pixels of the captured digital image of the user hand. Once the hand is segmented, the segmented hand data is extracted and forwarded for gesture recognition, which aims to detect and classify a hand gesture from a limited and pre-defined vocabulary of gestures.

FIG. 2A is a flow chart of a process for recognizing a hand gesture of a user hand captured in a digital image by a digital capture device in accordance with an embodiment of the invention. The computer system 100 depicted in FIG. 1 is configured to receive 202 a digital image of a user hand and applies 204 a generic parametric model to the digital image of the user hand and generates 206 a specific parametric template of the user hand. The computer system 100 is further configured to receive 208 a second digital image of the user hand positioned to represent a hand gesture. The computer system 100 detects 210 a hand contour of the hand gesture using the specific parametric template of the user hand. Based on the detected hand contour, the computer system 100 is further configured to recognize 212 the hand gesture positioned by the user hand in the second digital image.

The computer system 100 is further configured to recognize hand gestures captured in a continuous stream of image frames, e.g., video frames of a video of a user hand positioned in one or more hand gestures. The availability of a continuous stream of image frames offers the computer system 100 opportunity to develop additional features, for both the definition and detection of hand gestures. Thus, hand gestures recognized by the computer system 100 can have a static element (as in a static digital image), a motion element (as in video frames of a video), or a mixture of the two.

FIG. 2B is a flow chart of a process for recognizing hand gestures positioned by a user hand captured in a video in accordance with an embodiment of the invention. The computer system 100 depicted in FIG. 1 is configured to receive 201 an input video of user hand, which includes multiple video frames. The computer system 100 is configured to select 203 a video frame of the input video as a reference frame and apply 205 a generic parametric model to the selected video frame. The computer system 100 is configured to generate 207 a specific parametric template of the user hand contained in the reference frame. The computer system 100 is further configured to receive 209 one or more video frames of the input video. For each of the received video frame, computer system 100 is further configured to detect 211 a hand contour of the user hand positioned to represent a hand gesture in the video frame using the specific parametric template of the user hand and motion vector associated with the video frame. Based on the detected hand contours and motion vectors of the video frames, the computer system 100 is further configured to recognize 213 the hand gestures positioned by the user hand in the video frames of the video.

To use the motion vectors of the video frames of the user hand, the computer system 100 is configured to track the motion of objects (e.g., user hand) in the video, whose motion vectors for the blocks occupied by the objects become available as additional features in the analysis and recognition of hand gestures. The motion estimation described above is general, and can be used to analyze the motion not only for hand gestures, but also for facial or body movements and gestures, as well as in many other settings. In particular, the motion estimation scheme enables new motion-based features in video based sensing and pattern recognition. The features can be based on time history of motion vectors generated, as well as the evolution of the spatial regions and their features extracted from individual frames.

In one embodiment, the computer system 100 is configured to employ any existing motion estimation schemes to derive motion vectors, which are known to those of ordinary skills in the art. For example, the computer system 100 is configured to derive motion vectors of video frames of a video by tracking the motion of objects/regions on a block-by-block basis within successive video frames, and generating motion vectors for each block using inter- and intra-frame predictions among the video frames. A further description of embodiments of the motion estimation and motion vectors is provided in U.S. Patent Publication No. 2006/0245497, in U.S. Patent Publication No. 2007/0127577, and in U.S. Patent Publication No. 2010/0290529, which are incorporated by reference in their entirety herein.

Hand Detection—User Hand Pre-Registration

Hand detection in some existing solutions is based on detecting skin tone in color images/video frames of a user hand, employing an a priori generic skin tone model learned from a database of human hands. However, the accuracy of such systems is limited, and unusable for practical applications such as real-time hand gesture recognition. There are existing models of skin color analysis, but most of which are built based on limited human hand skin databases, that may not capture the full variability. Furthermore, as the existing models are targeted for general user applications in arbitrary lighting conditions, they need to account for a wide range of flesh tones, e.g., from very light to dark. Thus, it is inevitable that some background colors will also be detected as part of human skin, posing more challenges to downstream hand gesture recognition procedures, and limiting system accuracy. In order to significantly improve the accuracy of hand skin color/tone analysis, the computer system 100 is configured perform hand pre-registration at run-time prior to hand gesture recognition. This avoids the vagaries of inadequate databases, model variabilities, and environmental conditions.

In one embodiment, a registration module, e.g. the registration module 122 illustrated in FIG. 1, is used to register a user hand's flesh tones in advance. Compared with existing solutions, pre-registering a user hand leads to a much more accurate model of the user's hand, which significantly improves the performance of the entire hand gesture recognition system 100. The system 100 can use the model of the user hand through the entire hand gesture recognition process until the hand gestures are formed by a different user hand.

The registration module 122 receives a digital image of a user hand and applies a general parametric model to the digital image of the user hand for the user hand registration. The registration module 122 selects multiple pixels from the pixels in the digital image that represents the user hand, where the selection of the pixels is defined by the general parametric model. From the selected pixels, the registration module 122 generates a specific parametric template of the user hand.

The general parametric model can use a predefined hand outline or a predefined region of interest to register the user hand. In one embodiment, the registration module 122 uses a predefined hand outline superimposed in the digital image of the user hand for the registration. FIG. 3A is a general parametric model with a predefined hand outline 310 to register a user hand. A template of a predefined hand outline 310 is presented to user. A user puts his/her hand inside the predefined hand outline. A digital capture device, e.g., a digital camera of a smartphone, captures the user hand. Once the hand image is captured, the template is used as a mask to separate the hand with the background of the hand image. Only pixels of the objects inside the template are used as valid pixels to determine the skin color of the user hand.

Using a template of a predefined hand outline may have some limitations. First, because user hands vary in size, there may not be a good match between the template and a particular user's hand. Some background pixels may also be present, and image processing tools such as histogram selection may be needed to filter out the unwanted pixels. For example, the hand color may cover a wide continuous spectrum, while under controlled conditions, the background pixels can be selected to be very isolated in the color spectrum (e.g., white, black, green, or blue). To reduce the limitation of using the template for user hand registration, a green screen can be used for the background in the template to get an accurate initial capture.

In another embodiment, the general parametric model can use a predefined region of interest to register the user hand. FIG. 3B is a general parametric model with a predefined region of interest 320 to register a user hand, in accordance with an embodiment of the invention. A region-of-interest (ROI) window 320 can be presented to a user on a display screen. A user covers the entire ROI window using his/her hand. The registration module 122 uses all pixels inside the ROI window to determine the color parameters of the user hand. By keeping the ROI small, this method can be sensitive to both the user hand as well as environmental conditions, such as lighting. One limitation of this method is that it may not capture the full breadth of tonal variations of the user's hand. Nevertheless, this method is more suitable for real-time hand gesture recognition and is used in the discussions below. Other embodiments may use other methods or consider additional factors, e.g., taking into account of different flesh tones of front (palm) and back of a user hand, for user hand registration.

Hand Detection—Adaptive Hand Detection

Skin detection of a user hand is generally dependent on the illumination of the environment, where the user hand is captured. One set of parameters suitable for a particular scene might not work in other conditions. To reduce the dependency on the illumination of user hand registration, the registration module 122 adds real-time adaptability in choosing the parameters based on actual scenes of user hand registration.

In one embodiment, the registration module 122 applies a color model to the selected pixels of a digital image that presents a user hand and generates a skin map (also called “skin template”) of the user hand. From the generated skin map of the user hand, the registration module 122 generates a specific parametric template of the user hand. The specific parametric template is itself adaptable, and decision boundaries are adjusted on the fly at regular time intervals by examining the ROI. The color model can be selected from color models in different color spaces, such as hue-saturation-value (HSV) color space and luma-chroma color space (e.g., YCbCr). Many other color spaces are available, including custom FastVDO integer color spaces of (e.g., FastVDO submissions to International Organization for Standardization (ISO) and International Telecommunication Union (ITU)), based on patented FastVDO technologies, e.g., U.S. Pat. No. RE 40081, which is incorporated by reference in its entirety herein.

In another embodiment, the registration module 122 applies two independent color models to the selected pixels of a digital image that presents a user hand and generates two specific parametric templates. The registration module 122 combines the two specific parametric models to generate an improved parametric template of the user hand. The registration module 122 may also apply two independent color models to the selected pixels of a digital image that presents a user hand and generates two skin maps of the user hand. The registration module 122 combines the two skin maps to generate an improved skin map of the user hand, e.g., by a bit-wise OR operation on the two skin maps.

The registration module 122, in one embodiment, applies two color representations simultaneously to the selected pixels of the digital image that represents the user hand: HSV and YCrCb, in order to detect skin consistently in a wide variety of environmental conditions. Depending on the readings from a region of interest applied to the digital image of the user hand, a dynamic range is assigned for the color components in HSV and YCrCb color space on a frame by frame basis in a scenario of detecting user hand in a video of the user hand.

There are two methods that can be used by the registration module 122 to select the range. In the first method, the registration module 122 calculates one or more first-order statistics of a chosen color space, such as the mean and standard deviation of H, S and V parameters in the ROI of the user hand and the whole video frame of the user hand. The distribution of ROI data are such that H values are cluttered about the mean, while those for S and V show a wider range. For example, the H value range is assigned as [Mean of H(ROI)−Standard Deviation of H(ROI), Mean of (H)ROI+Standard Deviation of H(ROI)]. For S and V parameters, the S or V value range is [Mean of S, V (ROI)−Standard Deviation of S, V(Frame), Mean of S, V (ROI)+Standard Deviation of S, V(Frame)]. The H/S/V values are then employed to detect skin region. The same technique is employed for the same frame in YCrCb color space to get another skin map. A bitwise OR operation is performed to get the final skin map of the user hand.

It is noted that the range of H values in ROI varies depending on the predominant channel in red (R), green (G) and blue (B) parameters in an R-G-B color space. In the second method, the registration module 122 calculates the mean for R, G and B in ROI, and depending on the calculated mean of R, G, B parameters in the ROI, the registration module 122 selects a range for H, S and V values for extracting skin region in HSV color space. For YCrCb color space, the registration module 122 users a fixed range, e.g., Y in (0-255) range, Cr in (131-255) range, Cb in (80-135) range, to determine the skin template in YCrCb color space. A bitwise OR operation is performed to get the final skin m of the user hand.

In the skin detection processing, the registration module 122 further uses threshold on the digital color image that represents a user hand in the ROI window to get the pixels close to the previously registered user hand skin tones values, allowing for changes in lighting and other environment conditions. An adaptive threshold in a chosen color space (from a set of possible color spaces, such as YCbCr, YUV, YIQ, and several custom color spaces), which the chrominance components are emphasized, and the luminosity is deemphasized, may be used to detect the user hand skin pixels and group the detected pixels together.

Hand Detection—Hand Contour Detection

A hand contour detection module, e.g., the contour detection module 124 illustrated in FIG. 1, is configured to detect a hand contour of the hand gesture positioned by a user hand. In one embodiment, the hand contour detection module 124 uses one or more morphological operators, e.g., dilation and erosion, to remove noise in the digital image of the hand gesture and regroup isolated elements to form more meaningful regions of the hand gesture. Several contours may be detected within the ROI window, but under the image acquisition conditions recommended, e.g., requesting user hand to be in a specified ROI window, covering about half the display screen, the hand contour detection module 124 is configured to identify the biggest segmented region that represents the hand contour for hand gesture recognition. FIG. 4 is an example of a detected hand contour of a user hand using the schemes described above.

Hand Gesture Recognition—Polygonal Approximation of Detected Hand Contour

The second stage of human visual gesture recognition is gesture recognition. Taking hand gesture recognition as an example, a hand gesture recognition module, e.g. the recognition module 130 illustrated in FIG. 1, is configured to recognize the hand gesture based on the hand contour detected by the detection module 120. In one embodiment, a hand contour approximation module of the recognition module 130 is configured to approximate the detected hand contour by one or more polygonal segments and to find a convex hull of the approximated polygonal hand contour. A feature analysis module of the recognition module 130 is configured to extract one or more features of the detected hand contour based on the convexity analysis of the approximated polygonal hand contour, and a feature recognition module of the recognition module 130 is configured to recognize the hand gesture based on the extracted features.

The hand contour obtained in the previous stage by the detection module 120 is a connected set of pixels of the digital image of a user hand positioned to represent a hand gesture. The boundary of the hand contour can be approximated using a concave polygon as shown in FIG. 5, which illustrates a corresponding concave polygon of the hand contour illustrated in FIG. 4. A polygon vertex is a point where two polygon edges meet, which is denoted as a black dot 502 in FIG. 5. In the description from herein, points in the concave polygon are denoted using bold lowercase letters, sets of points using bold capital letters, scalar values using lowercase letters, and vectors using bold letters as well. For example, in FIG. 5, the set of vertices 502 of the concave polygon can be written as: P={p(i):i=1,2, . . . ,n}  (1) where the vertices p(i) are ordered counterclockwise, and where p(1) 504 is the leftmost vertex.

A convex envelope polygon (or simply the convex polygon) of a concave polygon is defined as the convex hull of all the vertices of the concave polygon. The convex polygon of the concave polygon in FIG. 5 is the convex polygon 602 shown in FIG. 6, which includes all the vertices of the concave polygon in FIG. 5. The vertex set of the convex envelope polygon 602 can be denoted as: Q={q(i):i=1,2, . . . ,m}  (2) where vertices q(i) are ordered counterclockwise, and where q(1) 604 is the leftmost vertex. Given that Q is a subset of P, in Equation (2), m≦n is obtained.

Recall that a concave polygon is a polygon with one or more interior angles greater than 180°. Denote the interior angle of vertex p(i) as IntAngle(i). Since the interior angle cannot be exactly 180° (or the vertex would not be defined), all the vertices p(i) in P can be divided into two subsets P₁ and P₂, where P ₁ ={p(i):p(i)εP and IntAngle(i)<180°}  (3) P ₂ ={p(i):p(i)εP and IntAngle(i)>180°}  (4) P ₁ ∪P ₂ =P.  (5) where Q⊂P₁.

Let e(i) be the edge of the convex envelop polygon between vertices q(i) and q(i+1), d(i,j) as the distance between point p(i) to edge e(i). For every q(i), a corresponding pair of points p(r), p(t)εP such that p(r)=q(i), and p(t)=q(i+1) can always be found. Now if t≠r+1, then there is at least one point p(s)εP₂ with IntAngle (i)>180°}. Let's denote the set of such interior points as S _(i,r,t) ={p(s),r<s<t, where p(s)εP ₂ , p(r)=q(i), and p(t)=q(i+1)}.  (6) Among these, the point in S_(i,r,t) with maximal distance to edge e(i) is of special interest, and will be used to indicate the distance of pullback from the convex hull. This point will be named as a defect point f (i), where f(i)=p(s)εS _(l,m,n′) such that d(i,s)=max_(r<k<t, and p(k)εS) _(i,r,t) d(k,i)  (7) Let F denote the set of all such defect points, also called depth points herein (note that not all edges need have such defect points). Then point sets Q and F will be used as the extracted features of the hand, and are used in the recognition module 130. By definition, the following relationships hold for set P, Q and F: Q∩F=∅, (Q∪F)⊂ P. FIGS. 5-8 illustrate the relationship between different set of point P, Q and F. For example, q(1)=p(1), q(2)=p(4), S _(1,1,4) ={p(2),p(3)}, f(1)=p(3), And q(m−1)=p(n−3), q(m)=p(3), S _(m-1,n-3,n) ={p(n−2),p(n−1)}, f(m−1)=p(n−2). Point sets P, Q and F, have special interest to hand gesture feature extraction.

Let's number the defect points f(i) in a counterclockwise manner from 1 to k, with the leftmost defect point as f(i). From the definition of f(i), it is the point with the maximal pullback distance from the edge between vertices q(i) and q(i+1). The triplet of points q(i), f(i), and q(i+1) can be grouped together as a triplet of 2-dimensional vectors in the plane: {B(i), D(i), E(i)}, where B(i)=q(i), D(i)=f(i) and E(i)=q(i+1). FIG. 7 illustrates an example triplet of planar vectors {B(i), D(i), E(i)}, where letter “B” stands for “Begin, letter “D” for “Defect” and letter “E” for “End” of a segment of the convex hull that has such defect points, such as the triplet {B(1), D(1) and E(1)} indicated by 702, 704 and 706.

Let (x,y) be the pixel position of each point. Then the following measurements are made:

The perimeter of concave polygon (hand contour): p=Σ _(i=1) ^(i=n-1) ∥p(i+1)−p(i)∥+∥p(n)−p(1)∥  (8) The roundness ratio:

$\begin{matrix} {{Y = \frac{p^{2}}{4\pi\; A}},} & (9) \end{matrix}$ where A is the area of hand region or the number of pixels detected as hand. The distance between points B(i) and D(i) is defined by Equation (10): a(i)=√{square root over ((B(i)·x=D(i)·x)²+(B(i)·y=D(i)·y)²)}  (10) The distance between points E(i) and D(i) is defined by Equation (11): b(i)=√{square root over ((E(i)·x=D(i)·x)²+(E(i)·y=D(i)·y)²)}  (11) The distance between points B(i) and C_p (center of Palm) is defined by Equation (12): bc(i)=√{square root over ((B(i)·x−C_P(i)·x)²+(B(i)·y=C_P(i)·y)²)}  (12) The distance between points E(i) and C_p is defined by Equation (13): ec(i)=√{square root over ((E(i)·x−C_P(i)·x)²+(E(i)·y=C_P(i)·y)²)}  (13). FIG. 8 illustrates an example of the measurement of the distances a(4), b(4), bc(4) and ec(4) using Equations (10)-(13) as indicated by 802, 804, 806 and 808.

Furthermore, let v_(b)(i)=D(i)B(i) be a vector from point D(i) to B(i), v_(e)(i)=D(i)E(i) be a vector from point D(i) to E(i), then the dot product between vector v_(b)(i) v_(e)(i) can be computed as:

$\begin{matrix} {{{v_{b}(i)} \cdot {v_{e}(i)}} = {\frac{\begin{matrix} {{\left( {{{B(t)}x} - {{D(t)}x}} \right) \cdot \left( {{{E(t)}x} - {{D(t)}x}} \right)} -} \\ {\left( {{{B(t)}y} - {{D(t)}y}} \right) \cdot \left( {{{E(t)}y} - {{D(t)}y}} \right)} \end{matrix}}{{a(t)} \cdot {b(t)}}.}} & (14) \end{matrix}$ Hand Gesture Recognition—Feature Extraction

To recognize a hand gesture, the computer system 100 uses various features of the hand gesture extracted from the digital images of the user hand. Specifically, given an image, or a region within an image, the computer system 100 extracts the features that are subsequently fed to a classifier in order to recognize various gestures that may be presented within the image.

There are a variety of ways to generate features needed for human visual feature recognition. Features can be generated via linear transforms of input samples. If the transform is suitably chosen, transform domain features can exhibit high “information packing” properties compared with the original input samples. The basic reasoning behind transform-based features is that an appropriately chosen transform can exploit and remove information redundancies, which usually exist in the set of examples obtained by the measuring devices. Existing transforms used to generate features include the Karhunen-Loeve Transform (KLT), the Singular Value Decomposition, the Discrete Fourier Transform (DFT), the Discrete Cosine and Sine Transforms, the Hadamard Transform, the Haar Transform, the Discrete Wavelet Transform (DWT), the Multiresolution Analysis and Wavelet Packets.

Besides linear transformations, there are a number of alternative feature generation methods, which are application dependent. Based on how the computer system 100 treats the value of samples in the interested region of a digital image of a human visual gesture, there are different ways to extract useful information from the textures of the interested image. The sample values can be treated as random variables. The first-order statistics features, second-order statistics features (e.g., Co-occurrence Matrices) and features based on instant moments can be obtained. Image can also be treated as a successive sequence of rows or columns. In this case, the computer system 100 can model its underlying generation mechanism by adopting an appropriate parametric model. The parameters of the resulting models encode useful information and lend themselves as powerful feature candidates in human visual feature recognition.

Based on features chosen, different classifiers are applied. In one embodiment, the detection module 120 of the computer system 100 applies two different classifiers. In hand detection stage, a general parametric model can be used. This model has finite-dimensional parameters. Each element of the parameter vector is associated with a probability distribution, such as Poisson distribution, normal distribution, Gaussian distribution etc. With distribution function, the classifier can not only output the best choice, but also a probability. Some classifier algorithm can even provide a list of N-best output with probabilities. In gesture detection stage, a nonlinear classifier, such as decision trees, is used. Decision trees are multistage decision systems in which classes are sequentially rejected until the gesture recognition module reaches a finally accepted class of gestures.

Hand Gesture Recognition—Hand Feature Recognition

Given a digital image of a user hand positioned in a hand gesture and derived specific parametric template of the user hand, following is an example of hand gesture recognition algorithm based on the above discussion:

Step 1: Approximate the hand region by polygonal segments. This step removes unwanted convexity points and approximates the hand contour with a polygon.

Step 2: Find the convex hull of the approximated polygon.

Step 3: Find the convexity defects of the hull. As shown in FIG. 7, every group of start points (e.g., B(1)), depth points (e.g., D(1)), and end points (e.g., E(1)) define a single contour convexity defect, where the start point indicates the start point of a contour where the defect begins; the end point indicates where the defect ends, and the depth points are the furthest points from the hull.

Step 4: Find the minimal circle or rectangular box which can cover the convex hull. The center of the circle or rectangular box is the estimation of the center of the hand, C_H.

Step 5: Filter out the convexity points which are below the center of the hand, which are not finger tips or finger joints. This part of the application assumes that the hand is positioned upwards, so that finger tips are above the center of the hand in the acquired image. Alternately, one can suppose that the hand is upside down, and the convexity points above the center of the hand would then be eliminated.

Step 6: Find the minimal circle which can cover the depth points. The center of the circle is the estimation of the center of the palm, C_P. The radius of the circle is also recorded for later use.

Step 7: For each convexity defect, returns 3 points: depthpoint[i], startpoint[i] and endpoint[i], respectively. Ideally, the depthpoints are located at the finger joints, while the startpoints and endpoints are on the finger tips. FIG. 9A is a detected hand contour and FIG. 9B illustrates the detected features of a polygon approximating the detected hand contour depicted in FIG. 9A. Element 902 represents the length from a startpoint[i] to the center of Palm PCenter (C_P); element 904 represents the length from an endpoint[i] to the center of Palm PCenter (C_P); element 906 represents the minimal circle which covers selected depth points; element 908 represents the center of palm (C_P); and element 910 represents the radius of the minimal circle 906.

Let (x, y) be the position of each point as described in Step 7. The following measurements are made:

-   -   The length from the startpoint[i] (red) to the center of Palm         PCenter (C_P):         startPClen[i]=sqrt((startpoint[i]·x−PCenter·x)^2+(startpoint[i]·y−PCenter·y)^2),     -   The length from the end (blue) point to the C_P:         endPClen[i]=sqrt((endpoint[i]·x−PCenter·x)^2+(endpoint[i]·y−PCenter·y)^2),     -   The distance between start point to the depth point:         a[i]=sqrt((startpoint[i]·x−depthpoint[i]·x)^2+(startpoint[i]·y−depthpoint[i·y)^2),     -   The distance between the end point to the depth point:         b[i]=sqrt((endpoint[i]·x−depthpoint[i]·x)^2+(endpoint[i]·y−depthpoint[i·y)^2),         and     -   The dot product between two vectors pointing from depth point to         the start and end points:         dotproduct[i]=((startpoint[i]·X−depthpoint[i]·X)*(endpoint[i]·X−depthpoint[i]·X)+(startpoint[i]·Y−depthpoint[i]·Y)*(endpoint[i]·Y−depthpoint[i]·Y))/(a[i]*b[i]).

Step 8: Finger Count. Below is an example of pseudo-code of finger count:

//* Count fingers*// { Set finguercount = 0; Filter out effective depthpoints; For each convexity defect { Finger joint indicator: {  For each depthpoint in the effective depthpoint set, determine  whether it is a finger joint. The following condition should be satisfied: 1. dotproduct[i] > 0 2. ((depthpoint[i].Y − PCenter.Y)<(radius/2)) 3. ((a[i] + b[i])/2) > (radius*0.6) } } Finger Indicator; } It is noted that due to the lighting condition and background, the depthpoints detected may be much more than what's showed in the captured image. Not all of depthpoints are useful and meaningful for finger detection. The above algorithm is configured to filter out effective depthpoints first. The effective depthpoint includes all the depthpoints above PCenter, which correspond to finger joints, and the points corresponding to the joint between hand and wrist. Those depthpoints together are called the effective depthpoint set. It is also noted that in some scenarios, no valid finger joint can be detected, e.g., when there is only one finger. In this case, the above algorithm is configured to detect where the single finger is present.

FIG. 10 is a flow chart of a process of recognizing a hand gesture by the recognition module 130 illustrated in FIG. 1. Initially, the recognition module 130 is configured to receive 1002 a hand contour of a hand gesture positioned by a user hand and a specific parametric template of the user hand. The recognition module 130 approximates 1004 the hand contour by one or more polygonal segments and finds 1006 the convex hull of the approximated polygon of the hand contour. The recognition module 130 finds 1008 the convexity defects (e.g., depth points of the hand contour) of the convex hall and finds 1010 a minimal circle that covers the convex hull. The recognition module 130 further filters 1012 out the convexity points below the center of the user hand that are not finger tips or finger joints. For each convexity defect, the recognition module 130 calculates 1014 a variety of distances among the selected points of the convex hull and counts 1016 the finger based on the hand contour approximation.

Hand Gesture Recognition—Finger Count Applications

Two hand gestures positioned by a user hand sometimes are close to each other, which makes accurate hand gesture recognition challenging. FIG. 11A illustrates an example of finger count “0” positioned by a user hand in accordance with an embodiment of the invention. The effective depthpoints set of a first (illustrated in FIG. 11A) are all very close to or completely within the minimal circle 1102. However, if one finger is present in a hand gesture as illustrated in FIG. 11B, although there is no valid finger join can be detected, the startPCLen and endPCLen corresponding to a real finger is much longer than the radius of the minimal circle 1102 as shown in FIG. 11A.

The following pseudo-code illustrates differentiating between a finger count “0” gesture or a first from a finger count “1” gesture:

//*Finger count “0” gesture vs. Finger count “1” gesture*// { threshold = radius * 1.1; for each i, if(depthpoint[i].Y < C_H.Y) if ((startPClen[i] > threshold) ∥ (endPClen[i] > threshold)) count ++; if (count >0) fingercount = 1; }

FIG. 12A illustrates an example of recognizing “Capture” gesture positioned by a user hand in accordance with an embodiment of the invention. The “Capture” gesture illustrated in FIG. 12A is initially recognized as a finger count “2” gesture as illustrated in FIG. 12B. However, the recognition module 130 observes difference between the orientation of the angles of the thumb and the rest of the fingers. The recognition module 130 further observes that the distribution of the depthpints for “Capture” gesture and finger count “2” gesture are different, e.g., there are generally more depthpoints for the “Capture” gesture that those for finger count “2” gesture. Based on the observed differences, the recognition module 130 is configured to differentiate between the “Capture” gesture and finger count “2” gesture.

FIG. 13A illustrates an example of “Done” gesture positioned by a user hand in accordance with an embodiment of the invention. FIG. 13B illustrates an example of finger count “1” gesture positioned by a user hand. The “Done” may be first recognized as finger count “1” gesture or finger count “2” gesture. However, the “Done” gesture is different from the other two gestures, at least in the following ways: (1) the finger presents at the left side of PCenter (or right side, if using the other hand); (2) the effective depthpoints at the right side of PCenter are vertically aligned for the “Done” gesture; while in other cases for finger count “1” or “2” gestures, the effective depthpoints are mostly above PCenter, and horizontally aligned; and (3) the orientation and angle between thumb and other parts of the hand are different. Based on the observed differences, the recognition module 130 is configured to separate the “Done” gesture from the finger count “1” gesture.

FIG. 14A illustrates an example of “Palm” gesture positioned by a user hand in accordance with an embodiment of the invention. FIG. 14B illustrates an example of finger count “0” gesture positioned by a user hand. The “Palm” gesture and finger count “0” gesture are similar in that most effective depthpoints, associated startpoints and endpoints are very close to or within the minimal circle. The differences are mainly that: (1) the radius of the “Palm” gesture is bigger; (2) due to the relative symmetry of the first, the PCenter is located at almost the center of the first itself, while in the “Palm” gesture, the effective depthpoints, associated startpoints are mostly clustered at one side of the minimal circle (right side in this case); and (3) the depthpoint presented beside the thumb in the “Palm” gesture makes the depthpoints cluster vertically distributed instead of horizontally distributed. Based on the observed differences, the recognition module 130 is configured to separate the “Palm” gesture from the finger count “0” gesture.

It is noted that in the examples illustrated in FIG. 11A though FIG. 14B, every parameter of the hand gesture is customized for a hand position with thumb in the right side of the screen. For the other hand position (thumb on the left), the parameters can be adjusted accordingly.

FIG. 15 illustrates six examples of finger count gestures positioned by a user hand in accordance with an embodiment of the invention. The circle in each example indicates the estimation of palm. Thumb and other fingers in each example are identified and marked by different markers (e.g., different colored lines). The vertices of the convex hull and depth points of the user hand in each example are also identified and marked using the algorithm described above.

FIG. 16 through FIG. 20 illustrates examples of hand gesture recognition simulated in a software application executed in a computer with Window-based operation system. For example, FIG. 16 illustrates two examples of finger count “0” and “1” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention. FIG. 17 illustrates two examples of finger count “2” and “3” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention. FIG. 18 illustrates two examples of finger count “4” and “5” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention. FIG. 19 illustrates two examples of finger count “6” and “7” gestures positioned by a user hand and their corresponding detected hand contours in accordance with an embodiment of the invention. FIG. 20 illustrates one example of finger count “8” gesture positioned by a user hand and its corresponding detected hand contour in accordance with an embodiment of the invention.

Application of Hand Gesture Recognition—“Let's Count!”

Embodiments of the disclosed human visual gestures recognition have a variety of applications, including educational applications teaching kids to learn finger count. FIG. 21A through FIG. 24 illustrate a mobile application that integrates the hand gesture recognition as discussed above. The mobile application, called “Let's Count!” is designed as a video game to engage a user to learn finger counts, e.g., 1-5, by requiring the user to show the required finger count and to provide interactive feedback to the user. Other applications may include the use of body gesture recognition and facial feature recognition using the similar principles.

The “Let's Count!” video game includes four activities: main activity, splash screen activity, game image view activity and game animation activity. The main activity includes creating user interface for interacting with users; launching finger counting activities and starting the video game. The splash screen activity includes displaying a company logo for a few seconds, e.g., 2 seconds, and returning to main activity screen for the video game. The game image view activity includes displaying the logo of the video game and starting “main activity.” The game animation activity includes displaying animation of fingers, e.g., displaying images of finger count gestures of “1” to “5,” playing a sound in the background corresponding to the image being displayed, and sending appropriate results to the “main activity.”

FIG. 21A is a screen shot of “Let's Count!” video game implementing hand gesture recognition in accordance with an embodiment of the invention. The video game starts with displaying “FastVDO” company logo for two seconds, sends the result to “main activity” and exits. FIG. 21B is anther screen shot of “Let's Count!” video game showing logo of the video game.

FIG. 22A is a screen shot of “Let's Count!” video game showing a hand gesture for recognition, i.e., finger count “5” gesture. FIG. 22B is a screen shot of “Let's Count!” video game showing finger count “5” gesture for recognition, requesting a user to show the finger count “5.” Responsive to the user showing the correct finger count, the video game provides interactive feedback, such as showing a message of “Great . . . ” on the display screen of a mobile phone. FIG. 22C is a screen shot of “Let's Count!” video game showing a response to correct recognition of finger count “5” gesture in accordance with an embodiment of the invention.

FIG. 23 is a flow chart of a process of main activity for playing “Let's Count!” video game in a mobile phone in accordance with an embodiment of the invention. The main activity starts with a “on Create” function call 2302 and loads 2304 splash screen activity (e.g., showing FastVDO company logo for two seconds) and waits for result. The main activity also loads 2306 game image view activity (e.g., the logo of “Let's Count!” video game) and waits for result. After the game view activity returns, the main activity loads 2308 animation activity (e.g., showing a finger count gesture) and waits for result.

Responsive to camera parameters of a camera of the mobile phone being set 2310, the main activity opens 2312 the rear camera of the mobile phone, adds 2314 overlays to the displayed image of the finger count gesture and starts 2316 a game thread. In response to a user pressing “exit” or “back” button of the mobile phone 2318, the main activity exits 2320. Parallel to the activities described above, in response to “on Create” function call, the main activity also initializes 2322 camera parameters of the camera of the mobile phone and returns 2324 the result of the camera parameters initialization. In response to the camera parameters not being set, the main activity exits 2326 the video game.

FIG. 24 is a flow chart of a process for creating a game thread for playing “Let's Count!” video game in accordance with an embodiment of the invention. The game thread initializes 2402 variables for various functions calls and generates 2404 a random number that can be represented by a hand gesture positioned by one or more fingers of a user hand. The game thread prompts 2406 the number, which creates a function call message to a method that displays the number on the display screen. The game thread gets 2408 fingers counts from a surface view by sending a request to a preview surface to process frames of the display. The game thread waits for multiple frames (e.g., three frames) being processed. In response to the completion of processing the frames, the game thread gets the result from the preview surface, which is a finger count.

The game thread compares 2410 the results returned from the preview surface with the generated random number. If the finger count is equal to the random number 2412, the game thread displays 2418 the result. If the finger count is not equal to the random number, the game thread increases 2414 a count that records the number of times the user counted the finger wrong. Response to the count of wrongly counted fingers being smaller than three 2416, the user is allowed to try again to count the finger, otherwise, the game thread displays 2418 the result and generates 2404 another random number for the user to count.

A Visual Language with Human Visual Gestures

Embodiments of the computer system 100 described above recognize individual human visual gestures, such as hand gesture, facial gesture and body gestures, and translate the recognized human visual gestures based a dictionary with a known set of recognized human visual gestures, e.g., hand gestures of the American Sign Language. Another embodiment of the invention develops simple visual codes to express commands to capture, reference, edit, or transmit multimedia messages, which are specifically useful in real-time multimedia applications in a mobile communications environment.

In one embodiment, the computer system 100 is configured to combine multiple human visual gestures to create the visual codes or “visual grammar”, which can be used as elaborate and comprehensive commands beyond what a single human visual gesture can communicate. From the visual codes created based on multiple human visual gestures, the computer system 100 is further configured to create specialized shortcuts (also called “shorthand instruction codes”). A multi-gesture code and one or more shortcuts associated with it form a hierarchy, which is useful in terms of usage and the capabilities of transmitting and receiving devices and learning systems using the visual codes.

One application of the multi-gesture visual codes is video editing. Video editing is known to be a complicated process, requiring not only knowledge of video and audio feature metadata, such as formats, bitrates, frame rates, etc., but also appropriate selection of audio-video signal processing techniques, e.g., blue screening, layering, fading, blending, etc. Video editing only recently becomes a widely used consumer application with very limited applications in wireless communications environment. Embodiments of the invention provide a solution to video editing using recognized human visual gestures in the mobile communications environment. A further description of embodiments of video editing is provided in U.S. Pat. No. 8,107,599, which is incorporated by reference in its entirety herein.

One embodiment of the visual codes includes a limited number of key commands, and provides users an opportunity to invent their own important commands, using their own visual codes (and codes of codes). Specifically, the visual codes include commands to capture, splice, blend, and otherwise manipulate a video. FIG. 25 illustrates a table of example video editing commands and possible indications via the commands. A video editing command can be inputted into a computing device, e.g., a smartphone, by a variety of buttons (e.g., from pull-down menus), text, voice, and/or visual actions. Each video editing command has a corresponding text expression and/or a visual expression, and one or more human visual gestures that form the command.

SUMMARY

The foregoing description of the embodiments of the invention has been presented for the purpose of illustration; it is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Persons skilled in the relevant art can appreciate that many modifications and variations are possible in light of the above disclosure.

Some portions of this description describe the embodiments of the invention in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are commonly used by those skilled in the data processing arts to convey the substance of their work effectively to others skilled in the art. These operations, while described functionally, computationally, or logically, are understood to be implemented by computer programs or equivalent electrical circuits, microcode, or the like. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules, without loss of generality. The described operations and their associated modules may be embodied in software, firmware, hardware, or any combinations thereof.

Any of the steps, operations, or processes described herein may be performed or implemented with one or more hardware or software modules, alone or in combination with other devices. In one embodiment, a software module is implemented with a computer program product comprising a computer-readable medium containing computer program code, which can be executed by a computer processor for performing any or all of the steps, operations, or processes described.

Embodiments of the invention may also relate to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, and/or it may comprise a general-purpose computing device selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a tangible computer readable storage medium or any type of media suitable for storing electronic instructions, and coupled to a computer system bus. Furthermore, any computing systems referred to in the specification may include a single processor or may be architectures employing multiple processor designs for increased computing capability.

Embodiments of the invention may also relate to a computer data signal embodied in a carrier wave, where the computer data signal includes any embodiment of a computer program product or other data combination described herein. The computer data signal is a product that is presented in a tangible medium or carrier wave and modulated or otherwise encoded in the carrier wave, which is tangible, and transmitted according to any suitable transmission method.

Finally, the language used in the specification has been principally selected for readability and instructional purposes, and it may not have been selected to delineate or circumscribe the inventive subject matter. It is therefore intended that the scope of the invention be limited not by this detailed description, but rather by any claims that issue on an application based hereon. Accordingly, the disclosure of the embodiments of the invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims. 

What is claimed is:
 1. A computer-implemented method for recognizing hand gestures, the method comprising: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of a user hand against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, selecting a set of pixels of the digital color image in the first color space from the pixels of the digital color image within the ROI, the selected set of pixels of the digital color image in the first color space describing a general parametric model associated with the digital color image in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the user hand by applying the updated specific parametric template to subsequent digital images of the user hand, obtaining the contour of the user hand comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; and detecting a hand gesture based on the contour of the user hand, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 2. The method of claim 1, wherein the selected set of pixels are in a predefined hand outline.
 3. The method of claim 1, wherein the selected set of pixels are in a predefined region of interest.
 4. The method of claim 1, wherein a specific parametric template of the specific parametric templates is obtained by: applying a color model to the selected set of pixels of the digital color image of the user hand; generating a skin map of the user hand; and generating the specific parametric template based on the generated skin map of the user hand.
 5. The method of claim 1, further comprising: applying two independent color space models to the digital color image of the user hand; generating two skin maps of the user hand using the pixels in the digital color image of the user hand; and combining the two skin maps to generate an updated skin map of the user hand.
 6. The method of claim 5, wherein a first color space model of the two independent color space models is selected from a hue-saturation-value color space and the first color space model is represented by hue, saturation and value parameters.
 7. The method of claim 5, wherein a second color space model of the two independent color space models is selected from a luma-chroma color space and the second color space model is represented by luma and chroma parameters.
 8. The method of claim 5, wherein applying the two independent color space models to the digital color image of the user hand comprises: for a color space of a color space model chosen from the color spaces of the two independent color space models: calculating one or more first-order statistics of the color space model in the chosen color space; calculating one or more first-order statistics of the color space model in a red-green-blue color space; determining distribution ranges of each parameter of the chosen color space model in the chosen color space; and determining distribution ranges of each parameter of the chosen color space model in the red-green-blue color space.
 9. The method of claim 5, wherein generating the updated skin map of the user hand comprises: performing a logical inclusive OR operation to the two generated skin maps, the logical inclusive OR operation selecting a pixel of the digital color image of the user hand responsive to the pixel being in one of the two generated skin maps; and generating the updated skin map of the user hand based on the logical inclusive OR operation.
 10. The method of claim 1, wherein obtaining the contour of the user hand further comprises: detecting one or more convexity defects of the convex hulls, a convexity defect comprising a start point, a depth point and an end point; identifying a center of the digital color image of the user hand; filtering one or more points that do not represent fingertips or finger joints of the user hand; and refining the convexity defects based on the filtering result to generate a refined polygon approximating the contour of the user hand.
 11. The method of claim 10, further comprising: comparing the refined polygon approximating the contour with a set of known hand gestures; and determining the hand gesture based on the comparison.
 12. The method of claim 10, wherein the set of known hand gestures comprises American Sign Language set of hand gestures.
 13. A computer-implemented method for recognizing hand gestures, the method comprising: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, capturing an input video of a user hand against a background, the input video comprising a plurality of video frames of the user hand captured using a 2-D digital image capturing device, and a video frame of the plurality video frame representing a digital color image of the user hand at a time instance, the digital color image being represented by pixels in a first color space, selecting a video frame of the plurality of the video frames of the input video as a reference frame, selecting a set of pixels of the reference frame in the first color space from the pixels of the reference frame within the ROI, the selected set of pixels of the reference frame in the first color space describing a general parametric model associated with the reference frame in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; subsequently receiving one or more video frames of the input video of the user hand, wherein the user hand in a subsequently received video frame is positioned to represent a hand gesture; obtaining contours of the user hand in the subsequent video frames by applying the updated specific parametric template to the subsequent video frames of the user hand, obtaining a contour of the user hand in a video frame comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points, obtaining motion vectors of features of the user hand in the subsequent video frames based on the updated specific parametric template; and detecting a hand gesture based on the contour of the user hand and the motion vectors, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 14. The method of claim 13, wherein the hand gesture is one of a known set of hand gestures.
 15. A computer-implemented method for recognizing hand gestures, the method comprising: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of a user hand against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the user hand by applying the updated specific parametric template to subsequent digital images of the user hand, obtaining the contour of the user hand comprising: detecting pixels of the set of pixels that represent noise, regrouping a plurality of isolated regions of the digital color image into one or more segments based on the updated specific parametric template, selecting a largest segment of the one or more segments to represent the contour of the user hand, identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; and detecting a hand gesture based on the contour of the user hand, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 16. A non-transitory computer-readable storage medium storing executable computer program instructions for recognizing hand gestures, the computer programs instructions comprising code for: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of a user hand against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, selecting a set of pixels of the digital color image in the first color space from the pixels of the digital color image within the ROI, the selected set of pixels of the digital color image in the first color space describing a general parametric model associated with the digital color image in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the user hand by applying the updated specific parametric template to subsequent digital images of the user hand, obtaining the contour of the user hand comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; and detecting a hand gesture based on the contour of the user hand, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 17. The computer-readable storage medium of claim 16, wherein the selected set of pixels are in a predefined hand outline.
 18. The computer-readable storage medium of claim 16, wherein the selected set of pixels are in a predefined region of interest.
 19. The computer-readable storage medium of claim 16, wherein a specific parametric template of the specific parametric templates is obtained by: applying a color model to the selected set of pixels of the digital color image of the user hand; generating a skin map of the user hand; and generating the specific parametric template based on the generated skin map of the user hand.
 20. The computer-readable storage medium of claim 16, further comprising computer program instructions for: applying two independent color space models to the digital color image of the user hand; generating two skin maps of the user hand using a plurality of the pixels in the digital color image of the user hand; and combining the two skin maps to generate an updated skin map of the user hand.
 21. The computer-readable storage medium of claim 20, wherein a first color space model of the two independent color space models is selected from a hue-saturation-value color space and the first color space model is represented by hue, saturation and value parameters.
 22. The computer-readable storage medium of claim 20, wherein a second color space model of the two independent color space models is selected from a luma-chroma color space and the second color space model is represented by luma and chroma parameters.
 23. The computer-readable storage medium of claim 20, wherein the computer program instructions for applying the two independent color space models to the digital color image of the user hand comprise computer program instructions for: for a color space of a color space model chosen from the color spaces of the two independent color space models: calculating one or more first-order statistics of the color space model in the chosen color space; calculating one or more first-order statistics of the color space model in a red-green-blue color space; determining distribution ranges of each parameter of the chosen color space model in the chosen color space; and determining distribution ranges of each parameter of the chosen color space model in the red-green-blue color space.
 24. The computer-readable storage medium of claim 20, wherein the computer program instructions for generating the updated skin map of the user hand comprise computer program instructions for: performing a logical inclusive OR operation to the two generated skin maps, the logical inclusive OR operation selecting a pixel of the digital color image of the user hand responsive to the pixel being in one of the two generated skin maps; and generating the updated skin map of the user hand based on the logical inclusive OR operation.
 25. The computer-readable storage medium of claim 16, wherein the computer program instructions for obtaining the contour of the user hand further comprise computer program instructions for: detecting one or more convexity defects of the convex hull, a convexity defect comprising a start point, a depth point and an end point; identifying a center of the digital color image of the user hand; filtering one or more points that do not represent fingertips or finger joints of the user hand; and refining the convexity defects based on the filtering result to generate a refined polygon approximating the contour of the user hand.
 26. The computer-readable storage medium of claim 25, further comprising computer program instructions for: comparing the refined polygon approximating the contour with a set of known hand gestures; and determining the hand gesture based on the comparison.
 27. The computer-readable storage medium of claim 26, wherein the set of known hand gestures comprises American Sign Language set of hand gestures.
 28. A non-transitory computer-readable storage medium storing executable computer program instructions for recognizing hand gestures, the computer program instructions comprising code for: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, capturing an input video of a user hand against a background, the input video comprising a plurality of video frames of the user hand captured using a 2-D digital image capturing device, and a video frame of the plurality video frame representing a digital color image of the user hand at a time instance, the digital color image being represented by pixels in a first color space, selecting a video frame of the plurality of the video frames of the input video as a reference frame, selecting a set of pixels of the reference frame in the first color space from the pixels of the reference frame within the ROI, the selected set of pixels of the reference frame in the first color space describing a general parametric model associated with the reference frame in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; subsequently receiving one or more video frames of input video of the user hand, wherein the user hand in a subsequently received video frame is positioned to represent a hand gesture; obtaining contours of the user hand in the subsequent video frames by applying the updated specific parametric template to the subsequent video frames of the user hand, obtaining a contour of the user hand in a video frame comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; obtaining motion vectors features of the user hand in the subsequent video frames based on the updated specific parametric template; and detecting a hand gesture based on the contour of the user hand and the motion vectors, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 29. The computer-readable storage medium of claim 28, wherein the hand gesture is one of a known set of hand gestures.
 30. A non-transitory computer-readable storage medium storing executable computer program instructions for recognizing hand gestures, the computer program instructions comprising code for: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of a user hand against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the user hand by applying the updated specific parametric template to subsequent digital images of the user hand, obtaining the contour of the user hand comprising: detecting pixels of the set of pixels that represent noise, regrouping a plurality of isolated regions of the digital color image into one or more segments based on the updated specific parametric template, selecting a largest segment of the one or more segments to represent the contour of the user hand, identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; and detecting a hand gesture based on the contour of the user hand, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 31. An apparatus for recognizing hand gestures, the apparatus comprising: a computer processor for performing steps comprising: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of a user hand against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, selecting a set of pixels of the digital color image in the first color space from the pixels of the digital color image within the ROI, the selected set of pixels of the digital color image in the first color space describing a general parametric model associated with the digital color image in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the user hand by applying the updated specific parametric template to subsequent digital images of the user hand, obtaining the contour of the user hand comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; and detecting a hand gesture based on the contour of the user hand, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 32. The apparatus of claim 31, wherein the selected set of pixels are in a predefined hand outline.
 33. The apparatus of claim 31, wherein a specific parametric template of the specific parametric templates is obtained by: applying a color model to the selected set of pixels of the digital color image of the user hand; generating a skin map of the user hand; and generating the specific parametric template based on the generated skin map of the user hand.
 34. The apparatus of claim 31, further comprising: applying two independent color space models to the digital color image of the user hand; generating two skin maps of the user hand using the pixels in the digital color image of the user hand; and combining the two skin maps to generate an updated skin map of the user hand.
 35. The apparatus of claim 34, wherein a first color space model of the two independent color space models is selected from a hue-saturation-value color space and the first color space model is represented by hue, saturation and value parameters.
 36. The apparatus of claim 34, wherein a second color space model of the two independent color space models is selected from a luma-chroma color space and the second color space model is represented by luma and chroma parameters.
 37. The apparatus of claim 34, wherein applying the two independent color space models to the digital color image of the user hand comprises: for a color space of a color space model chosen from the color spaces of the two independent color space models: calculating one or more first-order statistics of the color space model in the chosen color space; calculating one or more first-order statistics of the color space model in a red-green-blue color space; determining distribution ranges of each parameter of the chosen color space model in the chosen color space; and determining distribution ranges of each parameter of the chosen color space model in the red-green-blue color space.
 38. The apparatus of claim 34, wherein generating the updated skin map of the user hand comprises: performing a logical inclusive OR operation to the two generated skin maps, the logical inclusive OR operation selecting a pixel of the digital color image of the user hand responsive to the pixel being in one of the two generated skin maps; and generating the updated skin map of the user hand based on the logical inclusive OR operation.
 39. The apparatus of claim 31, wherein obtaining the contour of the user hand further comprises: detecting one or more convexity defects of the convex hull, a convexity defect comprising a start point, a depth point and an end point; identifying a center of the digital color image of the user hand; filtering one or more points that do not represent fingertips or finger joints of the user hand; and refining the convexity defects based on the filtering result to generate a refined polygon approximating the contour of the user hand.
 40. The apparatus of claim 39, further comprising: comparing the refined polygon approximating the detected hand contour with a set of known hand gestures; and determining the hand gesture based on the comparison.
 41. The apparatus of claim 40, wherein the set of known hand gestures comprises American Sign Language set of hand gestures.
 42. An apparatus for recognizing hand gestures, the apparatus comprising: a computer processor for performing steps comprising: performing an adaptive hand detection, performing the adaptive hand detection comprising: presenting a region of interest (ROI) on a display, capturing an input video of a user hand against a background, the input video comprising a plurality of video frames of the user hand captured using a 2-D digital image capturing device, and a video frame of the plurality video frame representing a digital color image of the user hand at a time instance, the digital color image being represented in pixels in a first color space, selecting a video frame of the plurality of the video frames of the input video as a reference frame, selecting a set of pixels of the reference frame in the first color space from the pixels of the reference frame within the ROI, the selected set of pixels of the reference frame in the first color space describing a general parametric model associated with the reference frame in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the user hand in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; subsequently receiving one or more video frames of the input video of the user hand, wherein the user hand in a subsequently received video frame is positioned to represent a hand gesture; obtaining contours of the user hand in the subsequent video frames by applying the updated specific parametric template to the subsequent video frames of the user hand, obtaining a contour of the user hand in a video frame comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the user hand based on the points; obtaining motion vectors of features of the user hand in the subsequent video frames based on the updated specific parametric template; and detecting a hand gesture based on the contour of the user hand and the motion vectors, detecting the hand gesture comprising analyzing a structure, orientation and motion of the user hand based on the polygonal contour map through a nonlinear classifier to select the hand gesture from a pre-defined vocabulary of gestures.
 43. The apparatus of claim 42, wherein the hand gesture is one of a known set of hand gestures.
 44. A computer-implemented method for recognizing human visual gestures positioned by a portion of a human body, the method comprising: performing an adaptive detection of the portion of the human body, performing the adaptive detection comprising: presenting a region of interest (ROI) on a display, receiving a digital color image of the portion of the human body against a background, the digital color image captured using a 2-D digital image capturing device, the digital color image being represented by pixels in a first color space, selecting a set of pixels of the digital color image in the first color space from the pixels of the digital color image within the ROI, the selected set of pixels of the digital color image in the first color space describing a general parametric model associated with the digital color image in the first color space, obtaining specific parametric templates in additional color spaces, each specific parametric template comprising a selected set of pixels in the ROI representing the portion of the human body in a corresponding color space of the additional color spaces, the additional color spaces emphasizing chrominance over luminance information, and obtaining an updated specific parametric template by combining the specific parametric templates in the additional color spaces; obtaining a contour of the portion of the human body by applying the updated specific parametric template to subsequent digital images of the portion of the human body, obtaining the contour of the portion of the human body comprising: identifying points corresponding to fingertips, points between fingers, and convex hulls generated by the fingertips in the subsequent digital images based on the updated specific parametric template, and generating a polygonal contour map of the portion of the human body based on the points; and detecting a human visual gesture based on the contour, detecting the human visual gesture comprising analyzing a structure, orientation and motion of the portion of the human body based on the polygonal contour map through a nonlinear classifier to select the human visual gesture from a pre-defined vocabulary of gestures.
 45. The method of claim 44, wherein the portion of the human body comprises a user face. 